<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="/common/taglib.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
		<title>${resultView.condition_text}の価格情報 - Coojin 商品価格検索</title>
		<meta name="description" content="${resultView.condition_text}の価格情報、価格コム、楽天、Yahooショッピング、ヤフオク、アマゾンなどのショッピングサイトから最安値の商品を簡単に探す事が出来るとても便利なお買い物サイトです。" />
		<meta name="keywords" content="${resultView.condition_text},価格,比較,最安値,格安,通販,商品,検索,ショッピング" />
		<link href="<%=path%>/search/jp/style/global.css" rel="stylesheet" type="text/css" />
		<link href="<%=path%>/search/jp/style/search.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="<%=path%>/search/jp/jscode/jquery-1.3.2.min.js"></script>
		<script type="text/javascript" src="<%=path%>/search/jp/jscode/jquery.corner.js"></script>
		<script type="text/javascript" src="<%=path%>/search/jp/jscode/jquery.bgiframe.js"></script>
		<script type="text/javascript" src="<%=path%>/search/jp/jscode/result.js"></script>
		<script type="text/javascript" src="<%=path%>/search/jp/jscode/shopHistory.js"></script>
	</head>
	<body onload="intiRadio();"> 
    <div id="wrapper">
	<div id="login"><a href="http://www.coojin.com/">求人情報</a><strong><a href="http://shop.coojin.com/">商品価格 </a></strong><a href="http://coojin.wordengine.jp/" style="margin-left:-5px;">英単語</a><a href="http://search.coojin.com/">カテゴリ</a></div>    
    <div id="header">
		  <div id="logo"><a href="<%=path%>/"><img src="<%=path%>/search/jp/image/logo.jpg" alt="Coojin 商品価格情報" /></a></div>
	      <div id="search_main" >
		      <div class="box-round">
		        <div id="calbox" ></div>
		        <s:form action="search" method="get" theme="simple" id="search_form">
				  <s:hidden name="sort" value="0"/>
	              <s:hidden name="flag" value="0"/>
				  <s:hidden name="maxPrice"/>
	              <s:hidden name="minPrice"/>
				  <s:hidden name="type" value="result"/>
		          <p>
		            <s:textfield name="keywords" id="name"></s:textfield>
		          </p>
		          <span>
			          <label>&nbsp;</label>
			          <input type="submit" value="価格検索" />
		          </span><br/>
					<div class="clear"></div>
				  <div id="auction" >
					  <input id="auction1" type="radio" name="isAuction" value="0" /> すべて&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			          <input id="auction2" type="radio" name="isAuction" value="1" />オークションを含まない
			  	  </div>
		        </s:form>
		      </div>
	      </div>
			<span id="logo_bottom">価格コム、楽天、Yahooショッピング、ヤフオク、アマゾンなどから、<br/>
									血圧計の検索結果を表示しています。</span>
</div>		  
		  <!--header end-->
		  <!--content start-->
		  <div id="content">
		    <div id="header_bar">
		        <h1 id="searchcondition">
					<span>${resultView.condition_text}</span>の価格情報
				</h1>
				<div id="resultnum">
					<span>${resultView.site_total_num}</span> 件中  
                    <span>${resultView.begin_num}</span> ～ 
                    <span>${resultView.end_num}</span> 件目
				</div>
		    </div>
		   <!--search list start--> 
			<div id="left" >
			<b class="xtop"><b class="xb7"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>
			<div id="box" >
				<table>
						<s:if test="resultView.modelList != null || resultView.priceList != null">
						 <s:if test="resultView.priceList != null">
							<tr><th>価格</td></th>
							<tr>
								
								<td>
								<s:iterator id="model" value="resultView.priceList">
									<s:if test="category != null">
										<s:if test="maxPrice != null">
											<s:if test="isAuction == 1">
												<a title="${minPrice_str}~${maxPrice_str}" rel="nofollow" href="<%=request.getContextPath()%>/word/${resultView.keywords}/category/${category}/price/${minPrice}-${maxPrice}/1/0/${resultView.isAuction}/">
													${minPrice_str}~${maxPrice_str}
												</a><br/>
											</s:if>
											<s:else>
												<a title="${minPrice_str}~${maxPrice_str}" rel="nofollow" href="<%=request.getContextPath()%>/word/${resultView.keywords}/category/${category}/price/${minPrice}-${maxPrice}/">
													${minPrice_str}~${maxPrice_str}
												</a><br/>
											</s:else>
										</s:if>
										<s:else>
											<s:if test="isAuction == 1">
												<a title="${minPrice_str}以上" rel="nofollow" href="<%=request.getContextPath()%>/word/${resultView.keywords}/category/${category}/price/${minPrice}-0/1/0/${resultView.isAuction}/">
													${minPrice_str}以上
												</a><br/>
											</s:if>
											<s:else>
												<a title="${minPrice_str}以上" rel="nofollow" href="<%=request.getContextPath()%>/word/${resultView.keywords}/category/${category}/price/${minPrice}-0/">
													${minPrice_str}以上
												</a><br/>
											</s:else>
										</s:else>
									</s:if>
									<s:else>
										<s:if test="maxPrice != null">
											<s:if test="isAuction == 1">
												<a title="${minPrice_str}~${maxPrice_str}" rel="nofollow" href="<%=request.getContextPath()%>/word/${resultView.keywords}/price/${minPrice}-${maxPrice}/1/0/${resultView.isAuction}/">
													${minPrice_str}~${maxPrice_str}
												</a><br/>
											</s:if>
											<s:else>
												<a title="${minPrice_str}~${maxPrice_str}" rel="nofollow" href="<%=request.getContextPath()%>/word/${resultView.keywords}/price/${minPrice}-${maxPrice}/">
													${minPrice_str}~${maxPrice_str}
												</a><br/>
											</s:else>
										</s:if>
										<s:else>
											<s:if test="isAuction == 1">
												<a title="${minPrice_str}以上" rel="nofollow" href="<%=request.getContextPath()%>/word/${resultView.keywords}/price/${minPrice}-0/1/0/${resultView.isAuction}/">
													${minPrice_str}以上
												</a><br/>
											</s:if>
											<s:else>
												<a title="${minPrice_str}以上" rel="nofollow" href="<%=request.getContextPath()%>/word/${resultView.keywords}/price/${minPrice}-0/">
													${minPrice_str}以上
												</a><br/>
											</s:else>
										</s:else>
									</s:else>
								</s:iterator>
								</td>
							
						</s:if>
						<s:if test="resultView.modelList != null">
							<tr><th>関連キーワード</td></th>
							<tr>
								<td>
									<s:iterator id="model" value="resultView.modelList" status="model">
										<div>
										<a title="<s:property/>" href="<%=request.getContextPath()%>/word/<s:property/>/"><s:property/></a>
										</div>
									</s:iterator>
									
								</td>
							</tr>
						</s:if>
					   </s:if>
					</table><br/>
					<s:if test="count != 0">
						<div id="cookie">
						   <div class='title'>
							  <span class='up'></span>検索履歴
						   </div>
						   <ul class="side">
							   <s:iterator id="historyURL" value="historyList">
							   		<li><s:property escape="false"/></li>
							   </s:iterator>
						  </ul>
						  <a id="clearCookie" href="javascript://" rel="nofollow">履歴をクリア</a>
						</div>
					</s:if>
					</div>
					<b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b> 
				</div>
		        <div id="center">
<%--			      <div id="search_con">--%>
<%--		                <b class="xtop"><b class="xb7"></b><b class="xb2"></b><b class="xb3"></b><b class="xb4"></b></b>--%>
<%--					    <div id="box" >--%>
<%--							<script type="text/javascript" src="<%=path%>/search/jp/jscode/ads/1131643678.js"></script>--%>
<%--							<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>--%>
<%--					    </div>--%>
<%--					    <b class="xbottom"><b class="xb4"></b><b class="xb3"></b><b class="xb2"></b><b class="xb1"></b></b> --%>
<%--                   </div>--%>
		           <div id="new"><!-- sort begin -->
					<span class="title">並び替え：</span>
					<s:if test="resultView.sort==0">
						&nbsp;&nbsp;<span>関連性</span>&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="#" onclick="submit_order(1)" rel="nofollow"><span>安い順 </span></a>&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="#" onclick="submit_order(2)" rel="nofollow"><span>高い順</span></a>&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="#" onclick="submit_order(3)" rel="nofollow"><span>レビュー順</span></a>
					</s:if>
					<s:if test="resultView.sort==1">
						&nbsp;&nbsp;<a href="#" onclick="submit_order(0)" rel="nofollow"><span>関連性</span></a>&nbsp;&nbsp;&nbsp;&nbsp;
						<span>安い順 </span>&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="#" onclick="submit_order(2)" rel="nofollow"><span>高い順</span></a>&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="#" onclick="submit_order(3)" rel="nofollow"><span>レビュー順</span></a>
					</s:if>
					<s:if test="resultView.sort==2">
						&nbsp;&nbsp;<a href="#" onclick="submit_order(0)" rel="nofollow"><span>関連性</span></a>&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="#" onclick="submit_order(1)" rel="nofollow"><span>安い順 </span></a>&nbsp;&nbsp;&nbsp;&nbsp;
						<span>高い順</span>&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="#" onclick="submit_order(3)" rel="nofollow"><span>レビュー順</span></a>
					</s:if>
					<s:if test="resultView.sort==3">
						&nbsp;&nbsp;<a href="#" onclick="submit_order(0)" rel="nofollow"><span>関連性</span></a>&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="#" onclick="submit_order(1)" rel="nofollow"><span>安い順 </span></a>&nbsp;&nbsp;&nbsp;&nbsp;
						<a href="#" onclick="submit_order(2)" rel="nofollow"><span>高い順</span></a>&nbsp;&nbsp;&nbsp;&nbsp;
						<span>レビュー順</span>
					</s:if>
			  </div><!-- sort end -->
			  <s:if test="resultView.flag != 1">
				  <s:iterator id="dataitem" value="resultView.dataItemViewList">
					  <div class="left_list" >
						<div class="result_image">
							<a rel="nofollow" target="_blank" href="${productUrl}" title="">
								<s:if test="smallImageUrl==null">
									<img src="<%=path%>/search/jp/image/noimage.gif" />
								</s:if>
			                    <s:if test="smallImageUrl!=null">
									<img src="${smallImageUrl}" id="itemimage"/>
								</s:if>
							</a>
						</div>
						<div class="compare" >
							<span style="font-size: 18px;color:#0032ab;">${price}</span><br/>
							<s:if test="isPrice==1">
			                    <span style="font-size: 18px;color:red;">${rmbPrice}</span>
							</s:if>
							<s:if test="isPrice==2">
			                    <span style="font-size: 18px;color:red;">${myPrice}</span>
			                </s:if><br/>
							<s:if test="${evaluation} < 1.0">
								<img src="<%=path%>/search/jp/image/0.gif"/>
							</s:if>
							<s:if test="${evaluation} == 1.0">
								<img src="<%=path%>/search/jp/image/1.gif"/>
							</s:if>
							<s:if test="${evaluation} > 1.0 && ${evaluation} < 2.0">
								<img src="<%=path%>/search/jp/image/1.5.gif"/>
							</s:if>
							<s:if test="${evaluation} == 2.0">
								<img src="<%=path%>/search/jp/image/2.gif"/>
							</s:if>
							<s:if test="${evaluation} > 2.0 && ${evaluation} < 3.0">
								<img src="<%=path%>/search/jp/image/2.5.gif"/>
							</s:if>
							<s:if test="${evaluation} == 3.0">
								<img src="<%=path%>/search/jp/image/3.gif"/>
							</s:if>
							<s:if test="${evaluation} > 3.0 && ${evaluation} < 4.0">
								<img src="<%=path%>/search/jp/image/3.5.gif"/>
							</s:if>
							<s:if test="${evaluation} == 4.0">
								<img src="<%=path%>/search/jp/image/4.gif"/>
							</s:if>
							<s:if test="${evaluation} > 4.0 && ${evaluation} < 5.0">
								<img src="<%=path%>/search/jp/image/4.5.gif"/>
							</s:if>
							<s:if test="${evaluation} >= 5.0">
								<img src="<%=path%>/search/jp/image/5.gif"/>
							</s:if>
						</div>
			            <div class="item" >
					        <h3><a rel="nofollow" target="_blank" href="${productUrl}">${productName}</a></h3>
					        <p class="info">${comment}</p>
					        <div class="site">
								<s:if test="shopName!=null">
									店舗：<a rel="nofollow" target="_blank" href="${shopUrl}">${shopName}</a>
								</s:if>
								<s:if test="sourceSiteName!=null">
									情報元：<span style="color: green;">${sourceSiteName}</span>
								</s:if>
							</div>
						</div>
				      </div>
					  <div class="item_line"></div>
				  </s:iterator>
			  </s:if>
			  <s:else>
				   <strong><span style="color:#0032ab">${resultView.condition_text}</span></strong>&nbsp;&nbsp;に一致する商品価格情報は見つかりませんでした。 検索条件を変更し、再度検索してみてください。
			  </s:else>
		      <!--search list end--> 
		      <!--page start--> 
		      <div id="page">
				<div class=page_styl>
					<mytag:page index="${resultView.page.curPage}" maxIndex="${resultView.page.totalPage}" action="${pageContext.request.contextPath}/word/" size="${resultView.page.length}" styleClass="page_styl" groupSize="15"></mytag:page>
				</div>
		      </div>
		       <!--page end--> 
		    </div>
		    <div id="right"><!-- google ads right  -->
				<div class="googleads_right"> 
					<script type="text/javascript" src="<%=path%>/search/jp/jscode/ads/5843193819.js"></script> 
					<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script> 
				</div> 
			</div>
		  </div>
		  <!--footer start!-->
			<div id="search_bottom">
			  <span>
				  <s:form action="search" method="get" id="search_form" theme="simple">
					<s:hidden name="sort" value="0"/>
			        <s:hidden name="flag" value="0"/>
					<s:hidden name="minPrice"/>
			        <s:hidden name="maxPrice"/>
					<s:hidden name="type" value="result"/>
					<s:textfield name="keywords" cssClass="search_box" cssStyle="width:300px;"></s:textfield>
				    <s:submit cssClass="submit_button" value="検 索"></s:submit>
				  </s:form>
			  </span>
			</div>
			<%@include file="/search/jp/include/footer_no_line.jsp"%>
		</div>
		<script type="text/javascript">
		    function submit_order(order)
		    {
		       var form = document.getElementById("search_form");
		       form.sort.value=order;
		       form.submit();
		    }
		</script>
	</body>
</html>
<script>
	function changeImageSize()
	{
	   var  imgs = document.getElementById("left").getElementsByTagName("img")
	   for(var i=0;i<imgs.length;i++)
	   {
		   image = imgs[i];
			  if(image.height>100){
				  image.height=100;
			  } 
			  if(image.width>90){
				  image.width=90;
			  } 
	   }
	}
	function intiCategory(){
		var form = document.getElementById("search_form");
		var category="${attr.category}";
		if(category.indexOf("com") == -1)
	        form.category.value=category;
	}
	function intiRadio(){
	    var auction1 = document.getElementById("auction1");
	    var auction2 = document.getElementById("auction2");
	    var auc = "${attr.isAuction}"
	    var auc1 = 0;
	    if(auc == auc1){
	    	auction1.checked="checked";
	    }
	    else{
	    	auction2.checked="checked";
	    }
	}
</script>
